import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/user_detail_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/user_detail_entity.g.dart';

@JsonSerializable()
class UserDetailEntity {
	int? id = 0;
	String? username = '';
	String? nickname = '';
	String? remark = '';
	int? deptId = 0;
	String? deptName = '';
	int? postIds = 0;
	String? email = '';
	String? mobile = '';
	String? userCode = '';
	int? sex = 0;
	String? avatar = '';
	int? status = 0;
	String? loginIp = '';
	String? loginDate = '';
	String? createTime = '';

	UserDetailEntity();

	factory UserDetailEntity.fromJson(Map<String, dynamic> json) => $UserDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}